<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>" />
<link href="_css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="_script/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="themes/blue/style.css" media="screen" />
<title>列表</title>
<SCRIPT type=text/javascript>
function tools(){
var box_h="1";	
var top=$(document).scrollTop();
$("#topv")[0].value=top;
if(($.browser.msie==true)&&($.browser.version==6.0)){
if(top>box_h)$("#box_tools").css({position:"absolute",top:top-box_h});
}else{
if(top>box_h)$("#box_tools").css({position:"fixed",top:"-"&top+"px"});
}
if(top<=box_h)$("#box_tools").css({position:"static",top:0});
}

$(function(){
window.onscroll=tools;
window.onresize=tools;
});
function colorclose(){
	 parent.$.fn.colorbox.close();
}

</SCRIPT>
</head>

<body>
<div id="box_tools" class="floor_t">
  <div class="toolbgline">
  <table width="100%" border="0" cellspacing="2" cellpadding="0">
      <tr>
        <td width="28"><a href="javascript:location.reload();"><img src="images/admin.gif" alt="刷新" width="28" height="20" /></a></td>
        <td width="100">
		  <a href="####" id="sendAll" class="btn_a" style="margin-left:5px">删除已选</a>
		 </td>
<TD width="300">
<TABLE border="0" cellSpacing="0" cellPadding="0" align="right">
<FORM id="form" method="get" name="form">
<TBODY>
<TR><TD width="110" align="middle">
<INPUT class="input" name="keywords" value="<?php echo $keywords?>">

</TD>
<TD width="2"></TD>
<TD width="52"><INPUT class="btn" value="搜索" type="submit" name="Submit3"></TD></TR></FORM>
</TBODY></TABLE></TD>

<TD align=right> </TD>

        <td width="20"><input class="input w200"  style="width:20px;margin-right:2px" name="topv" type="text" id="topv" value="" /></td>
        <td width="1"></td>
      </tr>
    </table>
  </div>
</div>
<div class="floor_c">  
  <div class="xn"></div>
  <div class="boxf">
    <div class="boxn"> 
<form action="sys_info.php?action=save" method="post" name="form1">
<input type="hidden" name="action" value="save">

<table width="99%"  border="0" cellspacing="1" class="tablesorter">
<thead>
<tr align="center" height="25">
<th width="24%">参数说明</th>
<th width="61%">参数值</th>
<th width="15%">变量名</th>
</tr>
</thead>
<?php
$query=$db->query("Select * From `{$tablepre}sysconfig` where groupid='0' order by sid asc");
$i = 1;
while($row = $db->fetch_array($query))
{
	if($i%2==0)
	{
		$bgcolor = "#FDFDF2";
	}
	else
	{
		$bgcolor = "#ECFACD";
	}
	$i++;
?>
<tr align="center" height="25" bgcolor="<?php echo $bgcolor?>">
<td  class="left_title_2">
<?php echo $row['info']; ?>：
</td>
<td align="left">
<?php
if($row['type']=='bool')
{
	$c1='';
	$c2 = '';
	$row['value']=='Y' ? $c1=" checked" : $c2=" checked";
	echo "<input type='radio' class='np' name='edit___{$row['varname']}' value='Y'$c1>是 ";
	echo "<input type='radio' class='np' name='edit___{$row['varname']}' value='N'$c2>否 ";
}else if($row['type']=='bstring')
{
	echo "<textarea name='edit___{$row['varname']}' row='4' id='edit___{$row['varname']}' style='width:100%;height:50px'>".htmlspecialchars($row['value'])."</textarea>";
}else if($row['type']=='number')
{
	echo "<input type='text' name='edit___{$row['varname']}' id='edit___{$row['varname']}' value='{$row['value']}' style='width:30%'>";
}else
{
	echo "<input type='text' name='edit___{$row['varname']}' id='edit___{$row['varname']}' value=\"".htmlspecialchars($row['value'])."\" style='width:80%'>";
}
?>
</td>
<td align="left"> &nbsp;&nbsp;<?php echo $row['varname']?></td>
</tr>
<?php
}

?>


<TR height=25 align=middle bgColor=#ecfacd><TD class=left_title_2>水印位置： </TD>
<TD align=left>
<?php
$query1=$db->query("Select * From `{$tablepre}sysconfig` where varname='cfg_water_img' order by sid asc");
$row1 = $db->fetch_array($query1)
?>
  <select id=edit___cfg_water_img type=text name=edit___cfg_water_img>
    <option value="1" <?php if($row1['value']=='1')echo 'selected="selected"'; ?>>顶端居左</option>
    <option value="2" <?php if($row1['value']=='2')echo 'selected="selected"'; ?>>顶端居中</option>
    <option value="3" <?php if($row1['value']=='3')echo 'selected="selected"'; ?>>顶端居右</option>
    <option value="4" <?php if($row1['value']=='4')echo 'selected="selected"'; ?>>中部居左</option>
    <option value="5" <?php if($row1['value']=='5')echo 'selected="selected"'; ?>>中部居中</option>
    <option value="6" <?php if($row1['value']=='6')echo 'selected="selected"'; ?>>中部居右</option>
    <option value="7" <?php if($row1['value']=='7')echo 'selected="selected"'; ?>>底端居左</option>
    <option value="8" <?php if($row1['value']=='8')echo 'selected="selected"'; ?>>底端居中</option>
    <option value="9" <?php if($row1['value']=='9')echo 'selected="selected"'; ?>>底端居右</option>
  </select>

</TD>
<TD align=left>&nbsp;&nbsp;cfg_water_img</TD></TR>
</table>
        <div align="center" style="margin-top:10px">
		   <input name="action" type="hidden" id="action" value="<?php echo $action?>"/>
          <input name="save" type="submit" class="btn" value="确认提交">
          &nbsp;&nbsp;
          <input name="reback" type="reset" class="btn" value="重新填写">
        </div>
</form>
    </div>
  </div>
  <div class="xn"></div>
  <div class="x1"></div>
</div>
</body>
</html>